package com.itheima.day01.ZuoYe.ZuoYe3_3;

public class Account {
    private int id ;
    private String name;
    private String password;
    private int money;
    private int rate;
    private int minMoney;
    static int num = 1000;

    public Account(String name, String password, int money, int rate, int minMoney) {
        this.name = name;
        this.password = password;
        this.money = money;
        this.rate = rate;
        this.minMoney = minMoney;
        this.id = num++;
    }

    public Account() {
        this.id = num++;
    }

    public Account(String name, int money) {
        this.name = name;
        this.money = money;
        this.id = ++num;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getRate() {
        return rate;
    }

    public void setRate(int rate) {
        this.rate = rate;
    }

    public int getMinMoney() {
        return minMoney;
    }

    public void setMinMoney(int minMoney) {
        this.minMoney = minMoney;
    }
}
